package org.de.maeyer.sampler;

import java.util.Comparator;

/**
 * @author Peter De Maeyer
 */
public class NaturalComparator implements Comparator<Comparable> {
	
	private static final NaturalComparator INSTANCE = new NaturalComparator();
	
	private NaturalComparator() {
	}

	@SuppressWarnings("unchecked")
    @Override
    public int compare(Comparable o1, Comparable o2) {
		return o1.compareTo(o2);
    }
	
	public static NaturalComparator getInstance() {
		return INSTANCE;
	}
}
